local yeYindun = fk.CreateSkill {
  name = "ye__yindun",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["ye__yindun"] = "隐遁",
  [":ye__yindun"] = "锁定技，防止你受到伤害和体力流失。",
}

yeYindun:addEffect(fk.DetermineDamageInflicted, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(yeYindun.name)
  end,
  on_use = function (self, event, target, player, data)
    data:preventDamage()
  end,
})

yeYindun:addEffect(fk.PreHpLost, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(yeYindun.name)
  end,
  on_use = function (self, event, target, player, data)
    data:preventHpLost()
  end,
})

return yeYindun
